<template>
  <div class="recommend">
    <div v-for="item in recommend" class="recommend-item" >
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
  export default{
    props:{
     recommend:{
       type:Array,
       default(){
         return []
       }
     }
    }
  }
</script>

<style>
  .recommend{
    display: flex;
    text-align: center;
    border-bottom: 8px solid#eee;
  }
  .recommend-item{
    flex: 1;
    padding: 5px 0 5px;
  }
  .recommend-item img{
    width: 80%;
    height:80%;
  }
</style>
